package com.nebula.api.modules.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nebula.api.modules.product.entity.ShopProduct;
import com.nebula.api.modules.product.vo.ProductVo;
import com.nebula.api.modules.product.vo.ShopProductVo;

import java.util.List;

/**
 * <p>
 * 商品(单个商品,有库存量,例如iphone10,内存是256G,尺寸是9.6寸) 服务类
 * </p>
 *
 * @author my
 * @since 2022-09-17
 */
public interface IShopProductService extends IService<ShopProduct> {

    /**
     * 查询首页数据
     * type:  type:1,精品  2，热门
     * name: 模块的名称
     *
     * @return ProductVo
     */
    public ProductVo selectProduct(Integer type, String name);
}
